//控制层
app.controller('indexController', function ($scope, $controller, loginService) {
    $scope.showLoginName = function () {
        //读取当前登录人用户名
        loginService.loginName().success(
            function (response) {
                $scope.loginName = response.loginName;
            }
        );
    };
});	
